#include"mystdio.h"
#include<string.h>


int main()
{
   MyFile *filep = MyFopen("./log.txt","a");
   if(!filep)
   {
      printf("fopen error！\n");
      return 1;
   }
//文件打开后向里面写入代码  然后关闭
   char* msg = "hello myfile!\n";
   MyFwrite(filep,msg,strlen(msg));


   MyFclose(filep);  //FILE* fp

   return 0;
}
